package cn.javabb.core.service.biz;
import cn.javabb.core.base.BaseService;
import cn.javabb.core.entity.biz.CatalogTypeDO;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author QINB imqinbao@163.com
 * @CreateDate 2018/11/23/023 16:31
 * @Since V1.0
 */
@Service
public class CatalogTypeService extends BaseService<CatalogTypeDO> {

    public List<CatalogTypeDO> listByCatalogId(Integer catalogId) {
        CatalogTypeDO ct = new CatalogTypeDO();
        ct.setCatalogId(catalogId);
        List<CatalogTypeDO> ctList = new ArrayList<>();
        ctList = this.queryListByWhere(ct);
        return ctList;
    }
}
